package com.zyj.action;

import java.util.Map;

import org.apache.struts2.interceptor.SessionAware;

import com.opensymphony.xwork2.ActionSupport;

public class BaseAction extends ActionSupport  implements SessionAware{
	private static final long serialVersionUID = 1L;
	private Map<String,Object> session;

	
	
	public void putInSession(String key,Object value) {
		session.put(key, value);
	}
	
	public Object getFromSession(String key) {
		return session.get(key);
	}

	public void setSession(Map<String, Object> arg0) {
		this.session = arg0;
	}

}
